package com.bigzero.workflow.common.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * 表结构
 *
 * @author fanxinxiong
 * @date 2025-02-08 10:23
 **/
@Data
public class TableColumnsDto {

    /**行名称*/
    @Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]*$", message = "绑定字段-字段名称不符合规则")
    private String columnName;

    /**数据类型*/
    private String dataType;

    /**字段长度*/
    private Integer columnLength;

    /**行备注*/
    private String columnComment;

    /**行健*/
    private String columnKey;
}
